import {NgModule} from '@angular/core';
import {SharedModule} from '@shared/shared.module';
import {DelonFormModule, WidgetRegistry} from '@delon/form';

// import { TinymceWidget } from './widgets/tinymce/tinymce.widget';
// import { UeditorWidget } from './widgets/ueditor/ueditor.widget';

export const SCHEMA_THIRDS_COMPONENTS = [
    // TinymceWidget,
    // UeditorWidget
];

@NgModule({
    declarations: SCHEMA_THIRDS_COMPONENTS,
    entryComponents: SCHEMA_THIRDS_COMPONENTS,
    imports: [SharedModule, DelonFormModule.forRoot()],
    exports: [...SCHEMA_THIRDS_COMPONENTS],
})
export class JsonSchemaModule {
    constructor(widgetRegistry: WidgetRegistry) {
        // widgetRegistry.register(TinymceWidget.KEY, TinymceWidget);
        // widgetRegistry.register(UeditorWidget.KEY, UeditorWidget);
    }
}
